﻿namespace Jim.OA.Service;

/// <summary>
/// OA框架Id
/// </summary>
public abstract class OAEntityBaseId
{
    [SugarColumn(ColumnName = "Id", ColumnDescription = "主键Id", IsPrimaryKey = true, IsIdentity = false)]
    public virtual int Id { get; set; }
}


/// <summary>
/// 框架实体基类
/// </summary>
public abstract class OAEntityBase : OAEntityBaseId
{
    /// <summary>
    /// 创建者Id
    /// </summary>
    [SugarColumn(ColumnName = "creater", ColumnDescription = "创建者Id", IsOnlyIgnoreUpdate = true)]
    public virtual int? Creater { get; set; }

    /// <summary>
    /// 创建时间
    /// </summary>
    [SugarColumn(ColumnName = "created", ColumnDescription = "创建时间", IsOnlyIgnoreUpdate = true)]
    public virtual DateTime? Created { get; set; }


    /// <summary>
    /// 修改者Id
    /// </summary>
    [SugarColumn(ColumnName = "modifier", ColumnDescription = "修改者Id", IsOnlyIgnoreInsert = true)]
    public virtual int? Modifier { get; set; }

    /// <summary>
    /// 更新时间
    /// </summary>
    [SugarColumn(ColumnName = "modified", ColumnDescription = "更新时间", IsOnlyIgnoreInsert = true)]
    public virtual DateTime? Modified { get; set; }
}